package com.ruicar.afs.cloud.channel.grade.vo;

import com.ruicar.afs.cloud.channel.grade.entity.GradeModelInfo;
import com.ruicar.afs.cloud.channel.grade.entity.GradeModelResult;
import com.ruicar.afs.cloud.channel.grade.entity.GradeModelSubDataelement;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

/**
 * @Description:评分模型结果bean定义
 * @param:
 * @return:
 * @auther: jiangxiongfei
 * @date: 2020-08-12 0:52
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GradeResultReturnVO extends GradeModelResult implements Serializable {

    private Map gradeResultMap = new HashMap();//评分返回信息Map<GradeDataETBean.key,GradeResultBean>

    private Map gradeInfoMap = null;//页面传入信息Map

    private Map gradeModelResultDtlMap = null; //指标结果明细对应的Map <GradeModelResultDtl.gradeNo,GradeModelResultDtl>

    private GradeModelInfo gradeModelInfo = null;//评分卡信息

    private BigDecimal score = BigDecimal.ZERO;//总得分

    private String grade = "";//评分级别

    private Long resultId;

    private GradeModelSubDataelement gradeModelSubDataelement = null;
    //key 为GradeModelSubDataelement中的subGradeCode,value为GradeModelSubDataelement对象E
    private Map<String, GradeModelSubDataElementVO> mapSubDataElement = new HashMap<String, GradeModelSubDataElementVO>();

    //一级指标分数汇总map key-一级elementNO value-一级指标下的二级指标分数汇总后的score add by jiangxiongfei 20200824
    private Map<String, BigDecimal> level1ElementSumScoreMap = new HashMap<String, BigDecimal>();
    //一级指标编号对应的GradeModelResultSubDtl记录id map key-一级指标elementNO（二级指标的上级指标编号） value-一级记录gradeModelResultSubDtl对象id  add by jiangxiongfei 20200824
    private Map<String, Long> gradeModelResultSubDtlIdMap = new HashMap<String, Long>();
}
